package design.principles.ocp.after;

import java.util.List;

public class ShapeUtil {
    static void printArea(List<Shape> shapes) {
        for (Shape shape : shapes) {
            System.out.println("Area of " + shape.getClass().getSimpleName() + " is: " + shape.calculateArea());
        }
    }
}
